<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"          
      xmlns:f="http://xmlns.jcp.org/jsf/core"
      >
    <h:head>
        <f:metadata>
            <f:viewParam name="drugID" value="#{drugBean.drugID}"/>
            <f:event type="preRenderView" listener="#{drugBean.getDrugDetail}"/>
        </f:metadata>        
    </h:head>
    <h:body>
        <ui:composition template="template/masterlayout.xhtml">
            <ui:define name="pagetitle">
                #{drugBean.drugName}
            </ui:define>
            <ui:define name="breadcrumb">
                <h:link value="Dashboard" outcome="index"/> &raquo; <h:link value="Drugs management" outcome="drugs"/> &raquo; <h:outputText value="#{drugBean.drugName}"/>
            </ui:define>
            <ui:define name="content">
                <div class="druginfo detail">
                    <div class="thumb">
                        <h:graphicImage library="images" name="noimage.jpg"/>
                    </div>
                    <div class="bref">
                        <p>                            
                            <h:outputLabel for="drugId">Drug ID: </h:outputLabel>
                            <h:outputText id="drugId" value="#{drugBean.drugID}"/>
                        </p>                        
                        <p>                            
                            <h:outputLabel for="drugName">Drug Name: </h:outputLabel>
                            <h:outputText id="drugName" value="#{drugBean.drugName}"/>
                        </p>
                        <p>                            
                            <h:outputLabel for="drugPrice">Drug Price: </h:outputLabel>
                            <h:outputText id="drugPrice" value="#{drugBean.drugPrice} $"/>
                        </p>
                        <div class="description">
                            <h3>Drug description</h3>
                            <p>
                                #{drugBean.drugDescription}
                            </p>
                        </div>                        
                    </div>
                    <div class="clear">                        
                    </div>
                </div>
            </ui:define>
        </ui:composition>
    </h:body>
</html>

